<template>
    <div class="SmallTown">
        这个是盒马小镇页面
        <Bb/>
        <a href="Details">点击到详情</a>
    <!-- 顶部栏 -->
    <div class="top">
      <span>&lt;</span>
      <img src="image/Smalltown/xinxi.png" @click="funa()" />
    </div>
    <div class="content">
      <img src="image/SmallTown/hema999.jpg" />
    </div>
    <!-- 盒花加钱购 -->
    <div class="content1">
      <div class="content-top">
        <span>盒花加钱购</span>
        <span @click="funb()">更多好礼&gt;</span>
      </div>
      <div class="content-con">
        <SmallZi v-for="(v, i) in 10" :key="i" />
      </div>
    </div>

    <!-- 盒花兑好货 -->
    <div class="content1">
      <div class="content-top">
        <span>盒花兑好货</span>
        <span @click="func()">更多&gt;</span>
      </div>
      <div class="content-con">
        <SmallZiB v-for="(v, i) in 10" :key="i" />
      </div>
    </div>

    <!-- 盒花夺宝 -->
    <div class="duobao">
      <div class="content-top">
        <span>盒花夺宝</span>
        <span @click="fund()">更多&gt;</span>
      </div>
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>
          <img src="image/SmallTown/hamaduobao_03.gif">
        </van-swipe-item>
        <van-swipe-item>
          <img src="image/SmallTown/hamaduobao_03.gif">
        </van-swipe-item>
        <van-swipe-item>
          <img src="image/SmallTown/hamaduobao_03.gif">
        </van-swipe-item>
        <van-swipe-item>
          <img src="image/SmallTown/hamaduobao_03.gif">
        </van-swipe-item>
        
      </van-swipe>
    </div>

    <div class="d">

      <Bb />
    </div>
  </div>

</template>

<script>
import SmallZi from "@/components/SmallTown/SmallTownZi";
import SmallZiB from "@/components/SmallTown/SamllTownZiB";
export default {
  components: {
    SmallZi,
    SmallZiB,
  },
  methods: {
    funa() {
      this.$router.push("/smalla");
    },
    funb() {
      this.$router.push("/eraa");
    },
    func() {
      this.$router.push("/smallc");
    },
    fund() {
      this.$router.push("/smalld");
    },
  },
};
</script>

<style scoped>
html {
  font-size: 26.67vw;
}
body {
  font-size: 0.16rem;
}
.SmallTown {
  width: 100%;
  height: 100%;
  background-color: #ccc;
}
.d {
  height: 0.5rem;
}
.top {
  width: 100%;
  position: fixed;
  top: 0;
  height: 0.35rem;
  background-color: #1676fe;
  padding: 0 0.12rem;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
}
.top span {
  color: #fff;
  font-size: 0.2rem;
}
.top img {
  width: 0.23rem;
  height: 0.23rem;
}
.content img {
  width: 100%;
  height: 4.35rem;
  line-height: 3.75rem;
}
.content1 {
  width: 96%;
  margin-left: 2%;
  background-color: #fff;
  bottom: 0.1rem;
}
.content-top {
  display: flex;
  justify-content: space-between;
  margin: 0.1rem;
  color: #9f683f;
  font-size: 0.14rem;
}
.content-con {
  display: flex;
  /* width:100%; */
  overflow-x: auto;
  flex-wrap: nowrap;
}
/* 盒花夺宝 */
.duobao {
  width: 98%;
  height: 1.3rem;
  margin: 0 auto;
  background-color: whitesmoke;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 0.2rem;
  line-height: 0.75rem;
  text-align: center;
  /* background-color: #39a9ed; */
}

.van-swipe-item img{
  width: 96%;
  height: 100%;
  margin: 0.1rem auto;

}
</style>